﻿@using System.Collections.Generic;
@using Think.Lenovo.Com.Models;
@using Think.Lenovo.Com.Models.Users;
@using System.Web.Mvc;
@using Think.Lenovo.Com.Common;
@using System.Web.Mvc.Html;
<html>
<head>
    <link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
    <link id="color" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
    <script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="/Scripts/ViewListDataReportTemplate.js"></script>
</head>
<body>
    <div id="content" style="background: url(/Contents/resources/images/background.png);">
        <!-- content / right -->
        <div id="right">
            <!-- table -->
            <div class="box">
                <!-- box / title -->
                <div class="title">
                    <h5>模板管理</h5>
                </div>
                <div class="table">
                    <table>
                        <tr>
                            <td align="center">
                                模板id
                            </td>
                            <td align="center">
                                模板名称
                            </td>
                            <td align="center">
                                创建者
                            </td>
                            <td align="center">
                                创建日期
                            </td>
                            <td align="center">
                                修改时间
                            </td>
                            <td align="center">
                                操作
                            </td>
                        </tr>
                        @{
                            foreach (DataReportModel item in ViewBag.List)
                            {
                            <tr>
                                <td align="center">
                                    @item.Id
                                </td>
                                <td align="center">
                                    @item.ReportName
                                </td>
                                <td align="center">
                                    @item.CreateUserName
                                </td>
                                <td align="center">
                                    @item.CreateDate
                                </td>
                                <td align="center">
                                    @item.ModifyDate
                                </td>
                                <td align="center">
                                    <a href="javascript:deleteDataReport(@item.Id);">删除</a> | <a href="/DataReport/DownLoadDataReportTemplate/@item.Id">
                                        下载模板</a> | <a href="/DataReport/ViewUploadReportFile/@item.Id/1/10">查看上报</a>
                                    |
                                </td>
                            </tr>
                            }
                        }
                    </table>
                    <div id="pager">
                        @{
                            foreach (PageNumberModel p in ViewBag.Pager)
                            {
                                if (!p.IsCurrentPage)
                                {
                            <a href="@p.PageLink">@p.PageNum</a>
                                }
                                else
                                {
                            @p.PageNum
                                }
                            }
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
